package com.scpii.api.persistence.app;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.scpii.api.domain.app.AppConfigs;

public interface AppConfigsMapper {
	int deleteByPrimaryKey(Long id);

	int insert(AppConfigs record);

	int insertSelective(AppConfigs record);

	AppConfigs selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(AppConfigs record);

	int updateByPrimaryKey(AppConfigs record);

	/**
	 * @param appId
	 * @param key
	 * @return
	 */
	AppConfigs selectByAppIdAndKey(@Param("appId") Long appId,
			@Param("key") String key);

	List<AppConfigs> selectByKeys(@Param("appId") Long appId,
			@Param("keys") String[] keys);
	
	List<AppConfigs> selectByType(@Param("appId") Long appId,
			@Param("type") Integer type);
	
	
}